package com.hue.gulimailseckill.feign;

import com.hue.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 姚凤桥
 * @Date 2022/1/12 14:29
 * @Description:
 */
@FeignClient("gulimail-coupon")
public interface CouponFeignService {
    /**
     * 查询近三天的秒杀活动
     *
     * @return
     */
    @GetMapping("/seckillsession/seckill3Days")
    R getSeckill3Days();

    /**
     * 将活动设置为已发布状态
     *
     * @param ids
     * @return
     */
    @PostMapping("/seckillsession/setSessionPublish")
    R setSessionPublish(@RequestBody List<Long> ids);
}
